package io.gitee.chearnee.fw.datasecurity.core.properties;

import io.gitee.chearnee.fw.datasecurity.core.enums.AesEnum;
import lombok.Getter;
import lombok.Setter;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * 脱敏配置
 * 脱敏，隐藏式加密
 * @author cn
 * @version 1.0
 * @description
 * @date 11/9/2022 2:23 PM
 */
@Getter
@Setter
@ConfigurationProperties(prefix = "fw.data-security.desensitization")
public class DataSecurityDesensitizationProperty {
    /**
     * 开启脱敏
     */
    private boolean enabled = true;
    /**
     * aes标准
     */
    private AesEnum aes = AesEnum.AES256;
    /**
     * 加密所需要的密钥，自定义时需要符合aes的标准，比如192标准密钥必须24位.
     */
    private String secretKey = "123456789012345678901234";
}
